//
//  BGAuctionTableViewCell.m
//  bigMall
//
//  Created by LTOVE on 16/7/20.
//  Copyright © 2016年 thinklev. All rights reserved.
//

#import "BGAuctionTableViewCell.h"
#import "BGAuctionCellModel.h"
static NSString *const resueIdentifire = @"cell";
static UITableView *_tableView = nil;

@interface BGAuctionTableViewCell ()

@property (weak, nonatomic) IBOutlet UILabel *goodInfo;
@property (weak, nonatomic) IBOutlet UILabel *outOfTime;
@property (weak, nonatomic) IBOutlet UILabel *guaDanFangShi;
@property (weak, nonatomic) IBOutlet UILabel *leiBie;
@property (weak, nonatomic) IBOutlet UILabel *Num;
@property (weak, nonatomic) IBOutlet UILabel *addre;
@property (weak, nonatomic) IBOutlet UILabel *qiPaiJia;
@property (weak, nonatomic) IBOutlet UILabel *zuiDiJiaJia;
@property (weak, nonatomic) IBOutlet UILabel *yiKouJia;
@property (weak, nonatomic) IBOutlet UILabel *dangQianJIaGe;
@property (weak, nonatomic) IBOutlet UILabel *chuJiaCiShu;
- (IBAction)iWantPai:(id)sender;


@end

@implementation BGAuctionTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
    self.guaDanFangShi.textAlignment = NSTextAlignmentCenter;
    self.guaDanFangShi.backgroundColor = [UIColor greenColor];
    self.guaDanFangShi.text = @"舱单";
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

+ (instancetype)cellWithTableView:(UITableView *)tableView andIndexPath:(NSIndexPath *)indexPath
{
    if (!_tableView) {
        _tableView = tableView;
        [tableView registerNib:[UINib nibWithNibName:@"BGAuctionTableViewCell" bundle:nil] forCellReuseIdentifier:resueIdentifire];
    }
    return [tableView dequeueReusableCellWithIdentifier:resueIdentifire forIndexPath:indexPath];
    
}
#warning 点击我要拍按钮
- (IBAction)iWantPai:(id)sender {
}

- (void)setModel:(BGAuctionCellModel *)model
{
    _model = model;
    self.goodInfo.text = model.goodInfo;
    self.outOfTime.text = model.outOfTime;
    self.guaDanFangShi.text = model.guaDanFangShi;
    self.leiBie.text = model.leiBie;
    self.Num.text = model.Num;
    self.addre.text = model.addre;
    self.qiPaiJia.text = model.qiPaiJia;
    self.zuiDiJiaJia.text = model.zuiDiJiaJia;
    self.yiKouJia.text = model.yiKouJia;
    self.dangQianJIaGe.text = model.dangQianJIaGe;
    self.chuJiaCiShu.text = model.chuJiaCiShu;
}
@end
